import { defineStore } from 'pinia'
import { ref, reactive } from 'vue'

export const useStore = defineStore('counter', () => {
  const count = ref(0)
  const state = reactive({
    num: 0
  })
  const increment = () => {
    count.value++,
    state.num++
  }

  return { count, state, increment }
})
